<?php
/**
 * Created by Jayli.
 * User: Administrator
 * Date: 2018-03-07
 * Time: 14:46
 */
namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Http\Controllers\Admin\BaseController;

class IndexController extends Controller
{
    public function indexAction(){
        return view('Admin.welcome');
    }
    public function clearRedis(BaseController $base){
        try{
            $message = '清除缓存成功！';
            $base->reSetWebIndexRedis(['data','shop_data']);
        }catch (\Exception $e){
            $message = '清除失败！';
        }
        return response()->json(['code'=>0,'message'=>$message]);
    }
}